package com.faeple.util;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionManager implements HttpSessionListener {

	public static int count;

	public static int getCount(){
		return count;
	}

	@Override
	public void sessionCreated(HttpSessionEvent event) {
        count++;
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent event) {
		count--;
        if(count<0) count=0;
	}
	
	
}
